Xbasic

UI_DLG_REMEMBERED_CLEAR Function

Syntax

Result as C = UI_DLG_REMEMBERED_CLEAR(C title)

Arguments

Result

A character string with seven comma delimited fields: the first is NULL, and the last six are set to zero.

title

The name of the dialog box.

Description

Clear any remembered alignment/size/position data.

Discussion

The UI_DLG_REMEMBERED_CLEAR() function clears any remembered alignment, size, or position data from the HKEY_CURRENT_USER\Software\Alpha Software\Alpha Five 6.0\xdialog key in the system registry.

This example runs a dialog, asks what its settings were, clears them, and asks again.

ui_dlg_box("Sticky",<<%dlg%
{position=remember=sticky}
{size=remember=sticky}
This is a sticky dialog | ;
{stretch=center}
[.30,10dummy]
%dlg%)
? ui_dlg_remembered_get("sticky")
= " ,0.78125,2.666667,2.510417,2.427083,0,0"
= " ,0,0,0,0,0,0"
ui_dlg_remembered_clear("Sticky")
? ui_dlg_remembered_get("Sticky")
= " ,0,0,0,0,0,0"

Limitations

Desktop applications only.

See Also